package com.freemalll.merchant.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.freemalll.merchant.domain.dto.MerchantRateDto;
import com.freemalll.merchant.domain.entity.MerMerchantRateManage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 映射层。
 *
 * @author songshixiong
 * @since 2025-05-26
 */
@Mapper
public interface MerMerchantRateManageMapper extends BaseMapper<MerMerchantRateManage> {

    /**
     * 根据商户id查询费率
     *
     * @param merId
     * @return
     */
    List<MerchantRateDto> listByMerId(@Param("merId") String merId, @Param("sceneCategory") String sceneCategory);

    /**
     * 根据商户id和场景分类查询费率
     *
     * @param merId
     * @param scene
     * @return
     */
    List<MerchantRateDto> listByMerIdAndScene(@Param("merId") String merId, @Param("scene") String scene);
}
